package com.fitz.demo.provider.controller;

import com.fitz.annotation.RpcReference;
import com.fitz.order.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gousl01
 * @date 2021/5/2 16:36
 * @desc
 */
@RestController
@RequestMapping("/p")
public class ProviderController{

    @RpcReference
    private OrderService orderService;

    @GetMapping("/o")
    public String orderNo(@RequestParam String orderNo){
        return orderService.orderNo(orderNo);
    }
}
